package main

import (
	"fmt"
	"time"
)

func worker() {
	//defer func() {
	//	if err := recover(); err != nil {
	//		fmt.Println(err)
	//	}
	//}()
	panic("something went wrong in worker")
}

func main() {
	go worker()

	// 主协程继续执行
	for i := 0; i < 5; i++ {
		fmt.Println("Main is running:", i)
		time.Sleep(1 * time.Second)
	}
	time.Sleep(10 * time.Second)
}
